﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FreedomERP.Models;

namespace FreedomERP.Dao.Sd.Impl
{
    public class SdSaleOrderDetailDAOImpl:ISdSaleOrderDetailDAO
    {
        FreedomERPEntities dbEntities = new FreedomERPEntities();

        /// <summary>
        /// 获取订单明细
        /// </summary>
        /// <author>梁建东</author>
        /// <returns></returns>
        public List<SdSaleOrderDetail> GetSaleOrderDetailListByFParentId(string FParentId)
        {
            List<SdSaleOrderDetail> list = (from irod in dbEntities.SdSaleOrderDetail where irod.FParentId == FParentId select irod).ToList<SdSaleOrderDetail>();
            return list;
        }
    }
}